package com.fangshicai.mapper;

import com.fangshicai.bean.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface StudentMapper {

    @Select("select * from mybatis.student where id=#{id}")
    Student queryStudentById(int id);

    List<Student> queryAllStudent();

}
